package com.app.mall.enums;

/**
 * @Description:响应状态
 * @Author: zengtaiyang
 * @Date: 2021/4/13 9:41
 * @Version: 1.0
 */
public enum ResultStatus {

    SUCCESS(200, "成功"),

    FAIL(500, "失败"),

    NUMBER_OF_VISITORS_IS_TO_MUCH(1000, "当前访问人数过多,请稍后重试"),

    SYSTEM_EXCEPTION(1001, "系统异常,请稍后重试");

    private Integer code;

    private String message;

    ResultStatus(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

}
